#ifndef SIMPLEITER_H
#define SIMPLEITER_H

#include <QtGui/QApplication>
#include <graphdrawer.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qvalidator.h>
#include <solver.h>


class simpleiter : public QWidget
{
    Q_OBJECT

public:
    simpleiter(QWidget *parent = 0, Qt::WFlags flags = 0);
    ~simpleiter();

private:
    bool mode;                      //true = bifur, false = conv
    solvergui * solv;
    QPushButton * solveB;
    QPushButton * changeModeB;
    QPushButton * exitB;
    QBoxLayout * mainLayout;
    QBoxLayout * optLayout;
    QLabel * dxLabel;
    QLabel * itLabel;
    QLabel * drLabel;
    QLabel * modeLabel;
    QLineEdit * dxLine;
    QLineEdit * itLine;
    QLineEdit * drLine;
    drawer * draw;
    QString * oldBifX, * oldConvX, * oldBifR, * oldConvR, * oldBifIt, * oldConvIt;
    void setBifMode();
    void setConvMode();

public slots:
    void change_mode();

signals:
    void change_m(bool);
};

#endif // SIMPLEITER_H
